What do you suspect will be used to add another choice to the program?

Answer:

Another IF structure will be added.

Another Nested IF

Remember the waiter trying to discover your choice of beverage?

WAITER: What would you like with your eggs this morning?
YOU: hmmmrff
WAITER: Coffee?
YOU: No.
WAITER: Tea?
YOU: No.
WAITER: Milk?
YOU: No.
WAITER: Jolt?
YOU: YES!!
airfare flow chart

As many choices as needed can be accomodated by adding IFs. In a program, these IFs will be nested. Here is one way the new selection could be added to the airfare program:


PRINT "Enter full fare"
INPUT FARE
PRINT "Enter age"
INPUT AGE
'
'Calculate discount based on age
IF AGE < 12 THEN
  LET RATE = 0.0

ELSE

  IF AGE  < 24 THEN
    LET RATE = 0.70

  ELSE

    IF __________________ THEN
      LET RATE = 1.0
    ELSE
      LET RATE = 0.75
    END IF

  END IF

END IF

'Calculate fare
PRINT "Your fare is:", FARE * RATE
END

QUESTION 6:

The program is starting to look a little ugly, but you can probably answer this question if you focus on just the new nested IF. Fill in the blank so that seniors 65 and older get the 0.75 rate.